#-*- coding:UTF-8 -*-
import re

if __name__ == '__main__':
	f = open('./chart/public/debugSetting.php','r');
	content = f.read()
	result = None
	m = re.search(r'false',content)
	if(m):
		result = r'<?php  $debugMode = true ;//not checking CAPTCHA ?>'
		print 'now in debugMode'
	else:
		result = r'<?php $debugMode = false ; ?>'
		print 'now in releaseMode'
	f.flush()
	f.close()
	f = open('./chart/public/debugSetting.php','w');
	f.write(result)
	f.close()

